import Vue from "vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
import "./assets/css/base.css";
import Astrict from "@/utils/astrict.js";
import moment from 'moment'
Vue.prototype.moment=moment
Vue.use(Astrict);
axios.defaults.baseURL = "http://localhost:8081";
axios.defaults.withCredentials = true; //配置axios跨域获取cookie,需配合node.js cors使用,
//如果cookie不跨域，则服务端不会发送cookie，会影响比如修改密码等操作，
//因为我是使用的res.cookies.userinfo.username来查找用户

Vue.use(ElementUI);
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
